package com.ai.wx.controller;

import java.io.IOException;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.ai.wx.entity.AgentUser;
import com.ai.wx.pojo.FlowCloudPostResult;
import com.ai.wx.service.SystemService;


@Controller
public class OpenViewController {
	 
	@RequestMapping("/index")
	public String index() {
		return "index";
	}
	

	@RequestMapping("/register")
	public String register() {
		return "/agent/register";
	}

	@Autowired
	private SystemService systemService;
 

	@RequestMapping("/mobiletraffic")
	@ResponseBody
	public FlowCloudPostResult mobiletraffic() throws IOException {
		FlowCloudPostResult result = new FlowCloudPostResult();
		result.setResult("0");
		result.setMsg("SUCCESS");
		return result;
	}
	 
}
